import time
from machine import Pin

pin_index_list = [13, 12, 14, 27, 26]
led_pin_list = []

for i in pin_index_list:
    led_pin_list.append(Pin(i, Pin.OUT))

# LED全熄灭
for pin in led_pin_list:
    pin.value(0)

while True:
    for pin in led_pin_list:
        pin.value(1)
        time.sleep(0.1)

    for pin in led_pin_list:
        pin.value(0)
        time.sleep(0.1)
